package com.sunlands.deskmate.message.handler.storager;

/**
 * @Author: anjunling@sunlands.com
 * @Description:
 * @Date: Create in 20:54 2018/6/5
 * @Modified By:
 */
public interface SortedStorager<E> {

    boolean add(String id, E message);

    E poll();

    E peek();

    boolean remove();

}
